package com.ulife.order.service.enumeration;

/**
 * Created by Ulife on 2016/1/21.
 * 销售订单支付状态
 */
public enum PayStatus {
    Create(0),
    Success(1),
    Failure(2);

    private int value = 1;

    private PayStatus(int value) {
        this.value = value;
    }

    public static PayStatus valueOf(int value){
        switch (value){
            case 0:return Create;
            case 1:return Success;
            case 2:return Failure;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}
